<!-- https://medium.com/js-dojo/vue-3-tips-best-practices-54aec91d95dc -->
<template>
  <div class="" ref="myDivRef">
     my text
  </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from 'vue';

const myDivRef = ref<HTMLElement>()

onMounted(() => {
  setTimeout(() => {
    myDivRef.value?.classList.add('my-style')
  }, 1000);
})
</script>

<style scoped>
.my-style {
  font-weight: bold;
  color: red;
}
</style>
